package com.endbd.systemmanagement.service.job;

import com.endbd.feignapi.model.system.Job;
import com.endbd.systemmanagement.model.JobCondition;
import com.endbd.systemmanagement.model.ModuleImpl;

import java.util.List;

public interface JobService {
  List<Job> getJobList();

  List<Job> queryCondition(JobCondition jobCondition);

  boolean createJob(Job job);

  int zx(Integer id, String state);

  boolean updateJob(Job job);

  List<ModuleImpl> getModules();

  List<Integer> getGrant(Integer id);

  boolean endowGrant(Integer id, List<Integer> initKey, List<Integer> checked) throws Exception;

}
